package com.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mapper.voipmapper.SotreadvMapper;
import com.base.po.voip.Sotreadv;
import com.base.service.SotreadvService;

@Service("sotreadvService")
public class SotreadvServiceImpl implements SotreadvService{

	@Autowired
	private SotreadvMapper sotreadvMapper;

	@Override
	public int deleteByPrimaryKey(String id) {
		return sotreadvMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Sotreadv record) {
		return sotreadvMapper.insert(record);
	}

	@Override
	public int insertSelective(Sotreadv record) {
		return sotreadvMapper.insertSelective(record);
	}

	@Override
	public Sotreadv selectByPrimaryKey(String id) {
		return sotreadvMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Sotreadv record) {
		return sotreadvMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Sotreadv record) {
		return sotreadvMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Sotreadv> selectByAll(Sotreadv record) {
		return sotreadvMapper.selectByAll(record);
	}

}
